package com.he.hsdyc.designmodule.state;

import lombok.extern.slf4j.Slf4j;

@Slf4j
public class CheckinState implements State {

    @Override
    public String getStateDescription() {
        return "当前状态为入住状态";
    }

    @Override
    public void Book(Room room) {
        log.info("入住状态无法预定");
    }

    @Override
    public void checkin(Room room) {
        log.info("已入住状态无法入住");
    }

    @Override
    public void unBook(Room room) {
        log.info("已入住状态无法取消预定");
    }

    @Override
    public void checkout(Room room) {
        room.setState(new FreeState());
    }
}
